package Chapter6.one_to_one;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "AStreet")
public class Street implements Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private String name;

	public Street() {
	}

	public Street(long id, String name) {
		this.id = id;
		this.name = name;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
